<template>
  <div class="search-wrapper">
    <!-- 搜索行 -->
    <div class="search">
      <div class="back">┃</div>
      <div class="kuang">
        <div class="icon">┃</div>
        <div class="input">
          <input type="text" placeholder="闭关十一年" />
        </div>
        <div class="button">
          <button>搜索</button>
        </div>
      </div>
    </div>

    <!-- 搜索历史 -->
    <div class="history">
      <div class="title">
        <div class="txt">搜索历史</div>
        <div class="icon">┃</div>
      </div>
      <div class="content">
        <div class="item">小说我在昆仑当守门员</div>
      </div>
    </div>

    <!-- 猜你想搜 -->
    <div class="you">
      <div class="left">
        <div class="think">猜你想搜</div>
        <div class="hot">头条热榜</div>
        <div class="txt">免费小说</div>
      </div>
      <div class="eye">┃</div>
    </div>
    <!-- 猜你想搜的内容 -->
    <div class="neirong">
      <div class="content1">
        <div class="item">小说我夺舍了孙悟空</div>
        <div class="gunzi">┃</div>
        <div class="item">狂人日记</div>
      </div>
      <div class="content1">
        <div class="item">小说我夺舍了孙悟空</div>
        <div class="gunzi">┃</div>
        <div class="item">狂人日记</div>
      </div>
      <div class="content1">
        <div class="item">小说我夺舍了孙悟空</div>
        <div class="gunzi">┃</div>
        <div class="item">狂人日记</div>
      </div>
      <div class="content1">
        <div class="item">小说我夺舍了孙悟空</div>
        <div class="gunzi">┃</div>
        <div class="item">狂人日记</div>
      </div>
      <div class="content1">
        <div class="item">小说我夺舍了孙悟空</div>
        <div class="gunzi">┃</div>
        <div class="item">狂人日记</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Search",
};
</script>

<style lang="less" scoped>
.search-wrapper {
  background-color: #fff;
  height: 100vh;

  //   猜你想搜的内容
  .content1 {
    margin-bottom: 10px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .gunzi {
      color: @font-grey-99;
      font-size: 12px;
    }
    .item {
      width: 150px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  //   猜你想搜
  .you {
    padding: 20px 0;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .eye {
      color: @font-grey-99;
    }
    .left {
      width: 70%;
      display: flex;
      font-size: 12px;
      justify-content: space-around;
      color: @font-grey-99;
      .think {
        color: black;
        border-bottom: 2px solid black;
      }
    }
  }

  //   搜索历史
  .history {
    padding: 20px;
    margin-top: 20px;
    .title {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: @font-grey-99;
    }
    .content {
      display: flex;
      align-items: center;
      margin-top: 10px;

      .item {
        width: 150px;
        height: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }

  //   搜索行
  .search {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    .back {
      position: absolute;
      left: 20px;
    }
    .kuang {
      position: absolute;
      right: 30px;
      display: flex;
      background-color: #f2f2f2;
      width: 80%;
      justify-content: center;
      border-radius: 30px;
      height: 35px;
      align-items: center;
      .icon {
        color: @font-grey-99;
      }
      input {
        margin-left: 5px;
        height: 35px;
        width: 220px;
        background-color: @background-grey-f2;
        border: none;
        line-height: 30px;
      }
      button {
        border: none;
        height: 35px;
        background-color: #f2f2f2;
        color: #f85959;
      }
    }
  }
}
</style>